import request from '@/utils/request'
// 新增字典数据
export function createdDictionary(data) {
  return request({
    url: '/admin/dictionary/create',
    method: 'post',
    data
  })
}
// 获取数据字典列表
export function dictionaryList(data) {
  return request({
    url: '/admin/dictionary/list',
    method: 'post',
    data
  })
}
// 修改字典数据
export function updateDictionary(data) {
  return request({
    url: '/admin/dictionary/update',
    method: 'post',
    data
  })
}
// 删除字典数据
export function deleteDictionary(data) {
  return request({
    url: '/admin/dictionary/delete',
    method: 'post',
    data
  })
}
